package cn.edu.anan.pattern.visitor;

/**
 * 被访问者抽象
 *
 * @author ThinkPad
 * @version 1.0
 * @date 2021/12/26 10:45
 */
public abstract class FileVisitable {

    protected String path;

    public FileVisitable(String path){
        this.path = path;
    }

    /**
     * 接受访问入口
     * @param visitor
     */
    public abstract void accept(FileVisitor visitor);
}
